package com.vdcloud.mcclassroom.controller;


import com.vdcloud.mcclassroom.entity.Member;
import com.vdcloud.mcclassroom.service.IMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 宋发准
 * @since 2019-12-24
 */
@RestController
public class MemberController {

    @Autowired
    private IMemberService service;

    @GetMapping("member")
    public Member getMember() {
        Member member = service.getById(1);
        return member;
    }
}

